import request from '@/http/request'
const apiUrl = 'bf-finance'
// -----------托育相关接口----------
// 质量培训统计
export const getMeetingData = (param) => {
  return request.post(`${apiUrl}/api/book/quality-training/data`, param)
}

// 质量培训详情
export const getMeetingList = (param) => {
  return request.post(`${apiUrl}/api/book/quality-training/list`, param)
}

// 获取所有园区（资产）接口
export const getTypeOptions = () => {
  return request.get(`${apiUrl}/childcare/getAllChildcarePark`);
}

// 分页托育客户接口
export const getTableData = (param) => {
  return request.post(`${apiUrl}/childcare/getChildcareCustomerPage`, param)
}

// 托育管理界面统计接口
export const getStatistics = (param) => {
  return request.post(`${apiUrl}/childcare/getChildcareStatistics`, param)
}


const detailApi = {
  getCustomerDetail:(id) => request.get(`${apiUrl}/childcare/getCustomer?customerId=${id}`),  //托育详情客户基础信息接口
  getPeriodsOption: (id) => request.get(`${apiUrl}/childcare/getPeriods?customerId=${id}`),  // 托育期数获取接口
  getAttendanceRecord: (id, periods) => request.get(`${apiUrl}/childcare/getAttendanceRecord?customerId=${id}&periods=${periods}`),  // 托育客户详情
  getChargeRecord: (id, periods) => request.get(`${apiUrl}/childcare/getChargeRecord?customerId=${id}&periods=${periods}`),  // 托育收费明细
  getDelayServiceRecord: (id) => request.get(`${apiUrl}/childcare/getDelayServiceRecord?customerId=${id}`), // 托育延时服务查询
}

export default detailApi